<?php
$section = 'member';

$titre = _LB_MEMBER_MANAGEMENT;
$smarty->assign('titre', $titre);

$id = Request::getIntNumber('id');
$backlink = Session::getBackLink('member');
$currentlink = APPLICATION_URL . "/member/delete/?id=". $id;

$member = new Member();
if(!$member->get($id))
	redirect($backlink);

if ($member->deletable($member->ID)){
    $member->delete();
}

redirect($backlink);